package game;

import java.awt.Color;
import java.awt.Graphics;
import java.awt.event.KeyEvent;
import java.awt.event.MouseEvent;

import engine.GameState;

public final class FakeState extends GameState {
	int i = 0;
	int invert = 1;

	@Override
	public void update(long delay) {
		i = i + invert;
		if (i == 0 || i > 700) {
			invert *= -1;
		}
	}

	@Override
	public void paint(Graphics g) {
		g.setColor(Color.RED);
		g.drawRect(i - 5, -5 + 50, 50, 50);
		g.fillRect(i, +50, 40, 40);
		g.setColor(Color.green);
		g.drawRect(i - 5, -5 + 50 + 50, 50, 50);
		g.fillRect(i, +50 + 50, 40, 40);
		g.setColor(Color.blue);
		g.drawRect(i - 5, -5 + 100 + 50, 50, 50);
		g.fillRect(i, +100 + 50, 40, 40);
		g.drawString("FAKESTATE " + i, 50, 50);
	}

	@Override
	public void init() {
		System.out.println("INIT");
	}

	@Override
	public void load() {
		System.out.println("LOAD");
	}

	@Override
	public void unload() {
		System.out.println("UNLOAD");
	}

	@Override
	public void mouseClicked(MouseEvent e) {
		// TODO Auto-generated method stub

	}

	@Override
	public void mousePressed(MouseEvent e) {
		// TODO Auto-generated method stub

	}

	@Override
	public void mouseReleased(MouseEvent e) {
		// TODO Auto-generated method stub

	}

	@Override
	public void mouseEntered(MouseEvent e) {
		// TODO Auto-generated method stub

	}

	@Override
	public void mouseExited(MouseEvent e) {
		// TODO Auto-generated method stub

	}

	@Override
	public void keyTyped(KeyEvent e) {
		// TODO Auto-generated method stub

	}

	@Override
	public void keyPressed(KeyEvent e) {
		// TODO Auto-generated method stub

	}

	@Override
	public void keyReleased(KeyEvent e) {
		// TODO Auto-generated method stub

	}
}
